import request from '@/utils/request'

// 查询公司编码列表
export function getCompanyList(params) {
  return request({
    url: '/admin/renewal/company/list',
    method: 'get',
    params
  })
}

// 查询地区编码列表
export function getPlaceList(params) {
  return request({
    url: '/admin/renewal/place/list',
    method: 'get',
    params
  })
}


// 分单区域
export function saveRangeList(data) {
  return request({
    url: '/admin/renewal/area',
    method: 'post',
    data
  })
}
export function getRangeList(params) {
  return request({
    url: '/admin/renewal/area/list',
    method: 'get',
    params
  })
}
export function getDelete(params) {
  console.log(params,"paramsparamsparams")
  return request({
    url: '/admin/renewal/area/delete?id=' + params.id,
    method: 'get',
  })
}

// 总专员列表
export function getPerson(params) {
  return request({
    url: '/admin/renewal/person/list',
    method: 'get',
    params
  })
}

// 分单区域专员列表
export function aprelationList(params) {
  return request({
    url: '/admin/renewal/aprelation/list',
    method: 'get',
    params
  })
}


// 添加专员
export function aprelation(data) {
  return request({
    url: '/admin/renewal/aprelation',
    method: 'post',
    data
  })
}

// 删除专员
export function aprelationDel(id) {
  return request({
    url: '/admin/renewal/aprelation/' + id,
    method: 'delete'
  })
}

// 通过围栏/应交月/行政区查询保单坐标和围栏工作量统计情况等
export function insuranceList(params) {
  return request({
    url: '/admin/renewal/insurance/list',
    method: 'get',
    params
  })
}

// 分单试算
export function tryCompute(params) {
  return request({
    url: '/admin/renewal/pirelation/tryCompute',
    method: 'get',
    params
  })
}

// 分单试算
export function addCompute(data) {
  return request({
    url: '/admin/renewal/pirelation/addCompute',
    method: 'post',
    data
  })
}

// 地图概览
export function getMapData(params) {
  return request({
    url: '/admin/renewal/pirelation/list',
    method: 'get',
    params
  })
}
// 图表概览
export function getChartData(params) {
  return request({
    url: '/admin/renewal/pirelation/columnList',
    method: 'get',
    params
  })
}
// 查询中心
export function getcustomRegionPolicyQuery(data) {
  return request({
    url: '/admin/renewal/area/customRegionPolicyQuery',
    method: 'post',
    data
  })
}
// 代理人查询
export function getoverviewOfSpecialistDistribution(data) {
  return request({
    url: '/admin/renewal/area/overviewOfSpecialistDistribution',
    method: 'post',
    data
  })
}
// 分单模式设置查询
export function getQueryConfigist(data) {
  return request({
    url: '/admin/renewal/rechangerelaConfig/queryConfigist',
    method: 'post',
    data
  })
}
// 分单模式设置确认
export function getSaveConfigist(data) {
  return request({
    url: '/admin/renewal/rechangerelaConfig/saveConfigist',
    method: 'post',
    data
  })
}
// 督导关系配置查询
export function getSupervisionQueryConfigist(data) {
  return request({
    url: '/admin/renewal/supervisionConfig/queryConfigist',
    method: 'post',
    data
  })
}
// 督导关系配置新增：
export function getsupervisionSaveConfigist(data) {
  return request({
    url: '/admin/renewal/supervisionConfig/saveConfigist',
    method: 'post',
    data
  })
}
// 督导关系配置修改：
export function getsupervisionUpdateConfigist(data) {
  return request({
    url: '/admin/renewal/supervisionConfig/updateConfigist',
    method: 'post',
    data
  })
}
// 督导关系配置删除：
export function getsupervisionDeleteConfigist(data) {
  return request({
    url: '/admin/renewal/supervisionConfig/deleteConfigist',
    method: 'post',
    data
  })
}

//交次接口
export function getqueryPayintv(data) {
  return request({
    url: '/admin/renewal/rechangerelaConfig/queryPayintv',
    method: 'post',
    data
  })
}